package com.liangtian.mdm.system.business.model;

import com.liangtian.mdm.base.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.io.Serializable;

@SuppressWarnings({"serial"})
@Table(name = "SYS_BUSINESS_TYPE")
public class SysBusiness extends BaseModel implements Serializable {

    @SequenceGenerator(name = "Any", sequenceName = "SYS_BUSINESS_SEQ")
    @Id
    @Column(name = "BUS_ID")
    private String busId;            // 业务类型ID
    @Column(name = "BUS_NAME")
    private String busName;    // 业务类型名称
    @Column(name = "BUS_TYPE")
    private String busType;    // 数据类型 【0-主数据、1-字典表】
    @Column(name = "CREATER_ID")
    private String createrId;    // 创建人ID
    @Column(name = "CREATER_NAME")
    private String createrName;    // 创建人姓名
    @Column(name = "CREATER_TIME")
    private String createrTime;    // 创建时间
    @Column(name = "UPDATER_ID")
    private String updaterId;    // 修改人ID
    @Column(name = "UPDATER_NAME")
    private String updaterName;    // 修改人姓名
    @Column(name = "UPDATER_TIME")
    private String updaterTime;    // 修改时间
    @Column(name = "BUS_TABLE_NAME")
    private String busTableName;    //数据表
    @Column(name = "IS_WORKFLOW_PERMIS")
    private String isWorkflow;    // 是否需要流程（0-否 1-是）
    @Column(name = "IS_RADIO_PERMIS")
    private String isRadio;    // 是否需要按钮（0-否 1-是）
    @Column(name = "PID")
    private String pid;    // 所属上级
    @Column(name = "IS_USED")
    private String isUsed;    // 是否备用（来源方向）
    @Column(name = "ORDER_NUM")
    private String orderNum;    //排序
    private String limit;//分页
    private boolean isParent;  //是否有子节点
    @Column(name = "BUS_TABLE")
    private String busTable; //业务表
    @Column(name = "DATA_TYPE")
    private String dataType; //数据类型

    public String getBusTable() {
        return busTable;
    }

    public void setBusTable(String busTable) {
        this.busTable = busTable;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public Boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    private String pName; //上级名称

    public String getBusId() {
        return busId;
    }

    public void setBusId(String busId) {
        this.busId = busId;
    }

    public String getBusName() {
        return busName;
    }

    public void setBusName(String busName) {
        this.busName = busName;
    }

    public String getBusType() {
        return busType;
    }

    public void setBusType(String busType) {
        this.busType = busType;
    }

    public String getCreaterId() {
        return createrId;
    }

    public void setCreaterId(String createrId) {
        this.createrId = createrId;
    }

    public String getCreaterName() {
        return createrName;
    }

    public void setCreaterName(String createrName) {
        this.createrName = createrName;
    }

    public String getCreaterTime() {
        return createrTime;
    }

    public void setCreaterTime(String createrTime) {
        this.createrTime = createrTime;
    }

    public String getUpdaterId() {
        return updaterId;
    }

    public void setUpdaterId(String updaterId) {
        this.updaterId = updaterId;
    }

    public String getUpdaterName() {
        return updaterName;
    }

    public void setUpdaterName(String updaterName) {
        this.updaterName = updaterName;
    }

    public String getUpdaterTime() {
        return updaterTime;
    }

    public void setUpdaterTime(String updaterTime) {
        this.updaterTime = updaterTime;
    }

    public String getBusTableName() {
        return busTableName;
    }

    public void setBusTableName(String busTableName) {
        this.busTableName = busTableName;
    }

    public String getIsWorkflow() {
        return isWorkflow;
    }

    public void setIsWorkflow(String isWorkflow) {
        this.isWorkflow = isWorkflow;
    }

    public String getIsRadio() {
        return isRadio;
    }

    public void setIsRadio(String isRadio) {
        this.isRadio = isRadio;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(String isUsed) {
        this.isUsed = isUsed;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    /**
     * @return the limit
     */
    public String getLimit() {
        return limit;
    }

    /**
     * @param limit the limit to set
     */
    public void setLimit(String limit) {
        this.limit = limit;
    }

    /**
     * @return the pName
     */
    public String getpName() {
        return pName;
    }

    /**
     * @param pName the pName to set
     */
    public void setpName(String pName) {
        this.pName = pName;
    }


}
